'use strict';

 export default class Func {
     static isAuthorized(authcode) {
         if (JSON.parse(sessionStorage.getItem('user'))) {
             const { resources } = JSON.parse(sessionStorage.getItem('user'));
             return resources.includes(authcode);
         }else{
             return false;
         }
     }
 }
 